package sugarbind_input

class Aglycon {

    String aglycon_Name
	
    static constraints = {
		aglycon_Name(nullable:false)
		aglycon_Name(unique:true)
		ligands(nullable:true)
		
    }
	
	static hasMany = [ligands: Ligand]
	
	static mapping = {
	//		id column: 'ligand_id'
			id generator: 'sequence', params: [sequence: 'aglycon_id_seq']
			
			
		}
		
		public String toString(){			
			 aglycon_Name
		}
}
